import axios from 'axios'
const baseURL = 'http://localhost:3000'
axios.defaults.baseURL = baseURL
axios.defaults.withCredentials = true

// 登录请求数据
export const checkLogin = (params) => {
  return axios.post('/employee/employeeLogin', params)
    .then((result) => {
      return result
    })
}

// 用户管理请求数据
export const GetUserList = (params) => {
  return axios.get('/user/queryUser', {params: params})
    .then((res) => {
      return res
    })
}

// 退出登录
export const Loginout = () => {
  return axios.get('/employee/employeeLogout')
    .then((res) => {
      return res
    })
}
